'''
Created on Oct 15, 2014

@author: azhelezny
'''
sourceDna = 'TTGAGAGTCTAATCGCGAGACCACACATCAAGATAAAGGGGCATTAGTGTGCGGCACTACTTGGCCGCGAATGCAAGCATTCGTGAAAAGTGAAACAGATGCAAGACGAGGGTATGCAGTGATCGTCGCGGGGTGCCGGCTCCCTATTTACGAGTACGTAACCTAAGTGGCTGCGGTTCTGGCGATGTCGCTATGAATCATCTTATTGAGTGTCAACACCTGCAAGTCGCTAATCTAAACACACTAGATTAGTTCGAGGATAATGTTCCACAAGGAGCTTTTGAATGATAGCATAGTGAGAGGGTTTTGCCACAGGTGCGATCAAGTTTCCTTAACATCTACATGCCTCCCCACGAACATCAATTTGGCATACAAAAAGGCATTCTCGCTCAGGGAAAGTGGGGATCACAGCGGACCGTCTCGTGTATTATATCTGATGGTGTAATACATGCCGATGCAGTACGTCAGTGTCGAGGGTCCTCTATAAAACTTATCTCGGGATAATTGTTCCTCTGAGCAACTTCGACAGTGATACTTGACTCAGCAAAGACTGTAGCTAAGCACACCGGAGCTCCAGACCAGATATAGTATCACTTGACGTATGCGACCATGATGGATTAGGCAAGGTTAAAGATAAGTCCCAGGGACGGCATGCGATAAGTCCGAATTACGTATTCTATGTACTCAGAGCTTTTAGCGAGGCGAATCCGTTCACGGCCAGCATTATCAGTATATGATGCTAAACCACTCCTCGATCAGATAGTCACAAGGTCGAGAGTCATCAACCACGCGGTCGGAGGC'

reversedDna = sourceDna[::-1]

complementedDna = reversedDna.replace('A', 'Z').replace('T', 'A').replace('Z', 'T')
complementedDna = complementedDna.replace('C', 'Z').replace('G', 'C').replace('Z', 'G')

print('reversed: '+reversedDna)
print('complemented: '+complementedDna)